/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef SCENE_SRC_SERIALIZATION_EXTERNAL_NODE_H
#define SCENE_SRC_SERIALIZATION_EXTERNAL_NODE_H

#include <scene/interface/intf_external_node.h>

#include <meta/ext/implementation_macros.h>
#include <meta/ext/object.h>

SCENE_BEGIN_NAMESPACE()

class ExternalNode : public META_NS::IntroduceInterfaces<META_NS::BaseObject, IExternalNode> {
    META_OBJECT(ExternalNode, ClassId::ExternalNode, IntroduceInterfaces)
public:
    META_NS::ObjectFlagBitsValue GetObjectDefaultFlags() const override
    {
        return META_NS::ObjectFlagBits::NONE;
    }
    CORE_NS::ResourceId GetResourceId() const override
    {
        return id_;
    }
    void SetResourceId(CORE_NS::ResourceId id) override
    {
        id_ = id;
    }

private:
    CORE_NS::ResourceId id_;
};

SCENE_END_NAMESPACE()

#endif
